import java.text.SimpleDateFormat;
import java.util.Calendar;


public class StructEventInfo {

		private int eventID;
		private String eventName;
		private Calendar eventDate;
		public String getEventName() {
			return eventName;
		}
		
		public StructEventInfo(int eventID, String eventName, String eventDate) {
			super();
			this.eventID = eventID;
			this.eventName = eventName;
			this.eventDate.set(Integer.parseInt(eventDate.substring(0, 4)), Integer.parseInt(eventDate.substring(4, 6)), Integer.parseInt(eventDate.substring(6, 8)));
		}

		public void setEventName(String eventName) {
			this.eventName = eventName;
		}
		public Calendar getEventDate() {
			return eventDate;
		}
		
		public String getEventDateYYYYMMDD(){
			SimpleDateFormat dateFormat = new SimpleDateFormat("yyyymmdd");
			return dateFormat.toString();
		}
		
		public void setEventDate(Calendar eventDate) {
			this.eventDate = eventDate;
		}
		public int getEventID() {
			return eventID;
		}
		
		
}
